/*
 * @Author: ZhangZheyi
 * @Date:   2017-01-11 14:10:16
 * @Last Modified by:   ZhangZheyi
 * @Last Modified time: 2017-01-13 11:22:14
 */

'use strict';

module.exports = [{
        name: 'index',
        path: '/',
        redirect: {
            name: 'home'
        },
        component: function (resolve) {
            require(['../components/index.vue'], resolve);
        },
        children: [{
                name: "home",
                path: 'home',
                component: function (resolve) {
                    require(['../components/home.vue'], resolve);
                },
            },
           /*  
           *采购
           */
            //采购申请
            {
                name: "purchaseApply",
                path: 'purchase',
                component: function (resolve) {
                    require(['../components/purchase/purchaseApply_index.vue'], resolve);
                },
            },

            {
                name: "purchaseApply_add",
                path: '/purchase/purchaseApply_add',
                component: function (resolve) {
                    require(['../components/purchase/purchaseApply_add.vue'], resolve);
                },
            },
            //采购审核
            {
                name: "purchaseAudit_index",
                path: '/purchase/purchaseAudit_index',
                component: function (resolve) {
                    require(['../components/purchase/purchaseAudit_index.vue'], resolve);
                },
            },
            //合同管理
            {
                name: "pactManage_index",
                path: '/purchase/pactManage_index',
                component: function (resolve) {
                    require(['../components/purchase/pactManage_index.vue'], resolve);
                },
            }
        ]
    }, {
        name: "login",
        path: '/login',
        component: function (resolve) {
            require(['../components/login.vue'], resolve);
        }
    }, {
        name: "demo",
        path: '/demo',
        component: function (resolve) {
            require(['../components/demo.vue'], resolve);
        }
    },

]